package com.hurst

class ImageController {

    def manager = {
        Manager manager = Manager.get(params.id)
        response.setContentType("image/png")
        response.outputStream << manager.signature
    }

    def contractor = {
        Contractor contractor = Contractor.get(params.id)
        response.setContentType("image/png")
        response.outputStream << contractor.signature
    }
}
